package ${impPackage};
import java.util.*;
import ${daoPackage}.${className_d}Service;

/**
 * ${className}
 */
public abstract class ${className_d}ServiceImp  extends BaseServiceImpl  implements ${className_d}Service{
	
	/**
	 * 保存实例
	 * 
	 * @param pDto
	 * @return
	 */
	public Dto save${className_d}Item(Dto pDto) {
		Dto outDto = new BaseDto();
		
	<#list tableIndexs as tableIndex>
	<#if tableIndex.unique>
	<#if tableIndex.indexName=="PRIMARY">
		pDto.put("${tableIndex.stringCarrayNames1}", IDHelper.getUserID());
	
	</#if>
	</#if>
	</#list>
		g4Dao.insert("${className_d}.insert", pDto);
		outDto.put("msg", "订单数据新增成功");
		outDto.put("success", new Boolean(true));
		return outDto;
	}

	/**
	 * 删除实例
	 * 
	 * @param pDto
	 * @return
	 */
	public Dto delete${className_d}Items(Dto pDto) {
	
		g4Dao.delete("${className_d}.deleteOrderByOid", pDto);
	
		return null;
	}

	/**
	 * 修改实例
	 * 
	 * @param pDto
	 * @return
	 */
	public Dto update${className_d}Item(Dto pDto) {

		g4Dao.update("${className_d}.update", pDto);

		return null;
	}
	
}